﻿// -----------------------------------------------------------------------
// <copyright file="Exit.cs" company="Diddly Squad">
// </copyright>
// -----------------------------------------------------------------------

namespace DiddlySquat
{
	/// <summary>
	/// Represents exit sign. To cupport level change.
	/// </summary>
	class Exit : Obstacle
	{
		/// <summary>
		/// Initializes the Exit obstacle.
		/// </summary>
		/// <param name="world">The world.</param>
		/// <param name="xpos">The xpos.</param>
		/// <param name="ypos">The ypos.</param>
		/// <param name="density">The density.</param>
		/// <param name="rotation">The rotation.</param>
		/// <param name="sprite">The sprite.</param>
		/// <param name="obstacleType">Type of the obstacle.</param>
		public override void Initialize(FarseerPhysics.Dynamics.World world, float xpos, float ypos, float density, float rotation, Microsoft.Xna.Framework.Graphics.Texture2D sprite, Enums.ObstacleType obstacleType)
		{
			base.Initialize(world, xpos, ypos, density, rotation, sprite, obstacleType);
			this.ObstacleBody.CollisionCategories = Constants.PlayerCollisionCategory;
		}
	}
}
